package com.ktjiaoyu.ktmall.service;

import com.ktjiaoyu.ktmall.entity.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategoryService {
    /**
     * 查询所有分类
     * */
    public List<Category> findAll() throws SQLException;

    /**
     * 获取树形结构分类
     * */
    public List<Category> getTree() throws SQLException;

    /**
     * 保存或更新分类
     * */
    public  boolean saveOrUpdate(Category category) throws SQLException;

    /**
     * 删除分类
     * */
    public boolean removeById(Long id) throws SQLException;
}
